package com.happy016.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.happy016.service.IDubboTestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DubboController {

    @Reference //这里是dubbo注解
    private IDubboTestService dubboTestService;

    @GetMapping("/dubbo")
    public String test(){
        return dubboTestService.getStr("Dubbo Test");
    }
}
